import Vue from 'vue';
import axios from "axios";
import {
  Button,
  DatePicker,
  Select,
  Option,
  Message,
  Alert,
  MessageBox,
  Row,
  Col
} from 'element-ui';
import qs from 'qs';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue';
import 'amfe-flexible';

Vue.use(Button);
Vue.use(Select);
Vue.use(DatePicker);
Vue.use(Option);
Vue.use(Alert);
Vue.use(Row);
Vue.use(Col);

Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$message = Message;
Vue.config.productionTip = false;
Vue.prototype.$axios = axios;
Vue.prototype.$qs = qs;
axios.defaults.timeout = 3500;
axios.defaults.baseURL = "/api";


new Vue({
  axios,
  render: h => h(App),
}).$mount('#app')